package jpaperwork.meta.transformer.path;

import jpaperwork.meta.descriptor.Aggregation;

/**
 * User: fleipold
 * Date: Jul 2, 2009
 * Time: 10:57:25 AM
 */
public class AggregationPath implements PathElement {
    public final Aggregation aggregation;
    private final int index;

    public AggregationPath(Aggregation aggregation, int index) {
        this.aggregation = aggregation;
        this.index = index;
    }

    public Aggregation getAggregation() {
        return aggregation;
    }

    public int getIndex() {
        return index;
    }
}
